﻿using System.IO;
using System.Text;

namespace Ping.Server
{
	/// <summary>
	/// A special type of streamwriter that doesn't close it's underlying stream when disposed.
	/// </summary>
	public sealed class NoCloseStreamWriter
		: StreamWriter
	{
		public NoCloseStreamWriter(Stream stream, Encoding encoding)
			: base(stream, encoding)
		{
		}

		protected override void Dispose(bool disposing)
		{
			base.Dispose(false);
		}
	}
}